#include <stdio.h>
#include <stdlib.h>

int compareIntegers(const void *a, const void *b) {
    return (*(int *) b - *(int *) a);
}

void main() {
    const int maxSize = 25;
    int numbers[maxSize];
    int size = 0;
    int num;
    while (scanf("%d", &num) == 1) {
        numbers[size++] = num;
    }
    qsort(numbers, size, sizeof(int), compareIntegers);
    int i;
    while (i < size) {
        i++;
        if (numbers[i] == numbers[i - 1]) i++;
        else printf("%d ", numbers[i - 1]);
    }
    if (i == size - 1) printf("%d", numbers[size - 1]);
    return 0;
}

